<template>
	<view class="container">
		<uni-list v-for="item in 10">
			<uni-list-item title="同学" note="" @click="toContent" clickable></uni-list-item>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				stulist: []
			}
		},
		methods: {
			toContent(){
				uni.navigateTo({
					url: '/pages/content/content'
				});
			}
		},
		onLoad() {
			uni.request({
				url: 'http://localhost:8090/freshmenapp/user/list',
				method: 'POST',
				data: {},
				success: res => {
					this.stulist = res.data.list
					uni.showToast({
						title: '成功',
						icon: 'none'
					});
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
